﻿var userModuleTree = null;
/**
 *取左侧菜单
 */
function getMenu() {
    var json = {
        url:parent.parent.contextPath + "/server/sys/getModuleTreeByUserDM.do",
        msg:"数据加载中.....",
        params:{
            "MODULE_DM_SJ":"1"
        },
        callback:[getMenuCallBack]
    };
    AjaxTools.ajax(json);
}
function getMenuCallBack(data) {
        userModuleTree = new dhtmlXTreeObject(document.getElementById('treeBox'), "100%", "100%", 0);
        userModuleTree.setImagePath("../include/js/components/xTree/xTree_imgs/csh_bluebooks/");
        userModuleTree.enableCheckBoxes(false);
        userModuleTree.loadXMLString(data.data);
}
